$(function(){
	/*
  $("body").append(
    '<sc'+'ript type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></sc'+'ript>' +
    '<sc'+'ript type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=imagencymanila&count=4&callback=twitterCallback2&count=5"></sc'+'ript>'
  );
  */
  var timeLine = "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=imagencymanila&include_entities=true&exclude_replies=true&include_rts=true&count=3&callback=?";
  $.getJSON(
	  timeLine,
	  '',
	  function(data) {
	    $.each(data, function(i, item){
			var url = 'https://api.twitter.com/1/statuses/oembed.json?id='+ item.id_str + '&callback=?';
			$.getJSON(
				url ,
				'',
				function(tweetEmbedObj){
					var listItem = $("<p></p>");
					listItem.append(tweetEmbedObj.html);
					$('#buzz-tweets-container').append(listItem);
				}
			);
	    });
	  });
});